package neurons;

import signal.SignalInterface;

public class InternalFunctionHeavySide implements InternalFunctionInterface {
	private Double seuil;

	public InternalFunctionHeavySide() {
		seuil = 0.5;
	}

	@Override
	public Double proceed(SignalInterface signal) {
		if (signal.getData() > seuil) {
			return 1.0;
		} else {
			return 0.0;
		}
	}

}
